package com.ruoyi.slope.video.lidar.service.impl;

import java.util.List;

import com.ruoyi.common.annotation.DataScope;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.slope.video.lidar.mapper.SlopeLidarMonitorMapper;
import com.ruoyi.slope.video.lidar.domain.SlopeLidarMonitor;
import com.ruoyi.slope.video.lidar.service.ISlopeLidarMonitorService;

/**
 * 点云雷达监测信息Service业务层处理
 * 
 * @author ruoyi
 * @date 2025-05-11
 */
@Service
public class SlopeLidarMonitorServiceImpl implements ISlopeLidarMonitorService 
{
    @Autowired
    private SlopeLidarMonitorMapper slopeLidarMonitorMapper;

    /**
     * 查询点云雷达监测信息
     * 
     * @param id 点云雷达监测信息主键
     * @return 点云雷达监测信息
     */
    @Override
    public SlopeLidarMonitor selectSlopeLidarMonitorById(Long id)
    {
        return slopeLidarMonitorMapper.selectSlopeLidarMonitorById(id);
    }

    /**
     * 查询点云雷达监测信息列表
     * 
     * @param slopeLidarMonitor 点云雷达监测信息
     * @return 点云雷达监测信息
     */
    @DataScope(deptAlias = "s")
    @Override
    public List<SlopeLidarMonitor> selectSlopeLidarMonitorList(SlopeLidarMonitor slopeLidarMonitor)
    {
        return slopeLidarMonitorMapper.selectSlopeLidarMonitorList(slopeLidarMonitor);
    }

    /**
     * 新增点云雷达监测信息
     * 
     * @param slopeLidarMonitor 点云雷达监测信息
     * @return 结果
     */
    @Override
    public int insertSlopeLidarMonitor(SlopeLidarMonitor slopeLidarMonitor)
    {
        return slopeLidarMonitorMapper.insertSlopeLidarMonitor(slopeLidarMonitor);
    }

    /**
     * 修改点云雷达监测信息
     * 
     * @param slopeLidarMonitor 点云雷达监测信息
     * @return 结果
     */
    @Override
    public int updateSlopeLidarMonitor(SlopeLidarMonitor slopeLidarMonitor)
    {
        return slopeLidarMonitorMapper.updateSlopeLidarMonitor(slopeLidarMonitor);
    }

    /**
     * 批量删除点云雷达监测信息
     * 
     * @param ids 需要删除的点云雷达监测信息主键
     * @return 结果
     */
    @Override
    public int deleteSlopeLidarMonitorByIds(Long[] ids)
    {
        return slopeLidarMonitorMapper.deleteSlopeLidarMonitorByIds(ids);
    }

    /**
     * 删除点云雷达监测信息信息
     * 
     * @param id 点云雷达监测信息主键
     * @return 结果
     */
    @Override
    public int deleteSlopeLidarMonitorById(Long id)
    {
        return slopeLidarMonitorMapper.deleteSlopeLidarMonitorById(id);
    }
}
